/*

 */

package com.yuan.algorithms.Algorithm_1;

import java.util.Scanner;
public class 华氏度转换为摄氏度 {
    public static void main(String[] YouYuan){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            double F = sc.nextDouble();
            double C = 5*(F-32)/9;
            System.out.print("℉"+F+"=℃");
            System.out.printf("%.3f\n",C);
        }
    }
}
